
import java.sql.ResultSet;
import java.sql.SQLException;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
/**
 *
 * @author Patrick
 */
public class Crime {

    private String description;
    private int counter;
    private int crimeID;

    public Crime(ResultSet rs) throws SQLException {
        this.description = rs.getString("description");
        this.counter = rs.getInt("counter");
        this.crimeID = rs.getInt("crimeid");
    }

    /**
     * @return the description
     */
    public String getDescription() {
        return description;
    }


    /**
     * @return the counter
     */
    public int getCounter() {
        return counter;
    }

    /**
     * @return the crimeID
     */
    public int getCrimeID() {
        return crimeID;
    }
}
